package com.javaee.lpr.service.Impl;

import com.javaee.lpr.entity.Notice;
import com.javaee.lpr.mapper.NoticeMapper;
import com.javaee.lpr.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    private NoticeMapper noticeMapper;

    @Override
    public List<Notice> queryNotice() {
        List<Notice> notices = noticeMapper.selectAll();
        return notices;
    }
}
